home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / YMAKEFIL.E < prev   
Text File  |  1989-12-31  |  6KB  |  145 lines

  1. CC =     cc
  2. CPP =     cc -E
  3. CFLAGS =  -O
  4. BIN_PROG =    nn nnmail nntidy nngrep nnquery nnusage nngoback
  5. BIN_LINK =    nncheck nnadmin
  6. LIB_PROG =    aux date_regexp log_entry back_act
  7. MASTER_PROG =    nnmaster
  8. SHELL = /bin/sh
  9. MASTER = master.o collect.o expire.o update.o \
  10.     global.o options.o active.o db.o nntp.o \
  11.     pack_date.o pack_name.o pack_subject.o news.o digest.o match.o 
  12. NN =     nn.o admin.o update.o \
  13.     global.o options.o active.o db.o nntp.o \
  14.     init.o variable.o term.o keymap.o macro.o regexp.o \
  15.     menu.o more.o rc.o group.o folder.o \
  16.     articles.o sequence.o selection.o kill.o \
  17.     answer.o reroute.o save.o unshar.o decode.o execute.o \
  18.     pack_date.o pack_name.o pack_subject.o news.o digest.o match.o 
  19. MAIL = nnmail.o reroute.o global.o options.o update.o
  20. all:    $(BIN_PROG) $(LIB_PROG) $(MASTER_PROG)
  21. client: update.o $(BIN_PROG) $(LIB_PROG)
  22. nn:    $(NN) 
  23.     $(CC) $(CFLAGS) $(NN) -lcurses  -o nn
  24. nnmaster: $(MASTER)
  25.     $(CC) $(CFLAGS) $(MASTER)  -o nnmaster
  26. nnmail:    $(MAIL)
  27.     $(CC) $(CFLAGS) $(MAIL)  -o nnmail
  28. nntidy:    nntidy.sh prefix
  29.     cat prefix nntidy.sh > nntidy
  30.     chmod +x nntidy
  31. nngrep:    nngrep.sh prefix
  32.     cat prefix nngrep.sh > nngrep
  33.     chmod +x nngrep
  34. nngoback: nngoback.sh prefix
  35.     cat prefix nngoback.sh > nngoback
  36.     chmod +x nngoback
  37. nnquery: nnquery.sh prefix
  38.     cat prefix nnquery.sh > nnquery
  39.     chmod +x nnquery
  40. nnusage: nnusage.sh prefix
  41.     cat prefix nnusage.sh > nnusage
  42.     chmod +x nnusage
  43. date_regexp: date_regexp.o
  44.     $(CC) $(CFLAGS) date_regexp.o  -o date_regexp
  45. log_entry: log_entry.o global.o update.o
  46.     $(CC) $(CFLAGS) log_entry.o global.o update.o  -o log_entry
  47. aux:     aux.sh prefix
  48.     cat prefix aux.sh > aux
  49.     chmod +x aux
  50. back_act: back_act.sh prefix
  51.     cat prefix back_act.sh > back_act
  52.     chmod +x back_act
  53. clean:
  54.     rm -f $(BIN_PROG) $(LIB_PROG) $(MASTER_PROG) cvt-help
  55. update.o:    update.h update.c patchlevel.h
  56.     -$(CC) -c $(CFLAGS) update.c
  57. install: prefix install.bin install.lib install.master install.man
  58.     @sh install_aux incr "usenet" "news" "/usr/llib/nn" "Log" 666 \
  59.         "Installation" "/usr/spool/nn"
  60. install.client: prefix install.bin install.lib install.man
  61.     @sh install_aux incr "usenet" "news" "/usr/llib/nn" "Log" 666 \
  62.         "Client Installation"
  63. install.bin: $(BIN_PROG)
  64.     @sh install_aux bin "usenet" "news" "/usr/lbin" "$(BIN_PROG)" 755 \
  65.         "$(BIN_LINK)"
  66. install.lib: $(LIB_PROG) cvt-help
  67.     @sh install_aux aux  "usenet" "news" "/usr/llib/nn" "$(LIB_PROG)" 755
  68.     @sh install_aux help "usenet" "news" "/usr/llib/nn" "help.*" 644
  69. install.master: $(MASTER_PROG)
  70.     @sh install_aux master "usenet" "news" "/usr/llib/nn" "$(MASTER_PROG)" 6755
  71. install.man: 
  72.     @sh install_aux 1  "usenet" "news" "/usr/catman/man/man1" "1" 644
  73.     @sh install_aux 1m "usenet" "news" "/usr/catman/man/man1"  "1m"  644
  74. online.manual:
  75.     @sh install_aux online "usenet" "news" "/usr/llib/nn" "n*.1 n*.1m" 444
  76. initdb:
  77.     @sh install_aux db "usenet" "news" "/usr/spool/nn" ". DATA" 755
  78.     @sh install_aux init . . "/usr/llib/nn" "$(MASTER_PROG)" . "-I"
  79. prefix:    prefix.sh config.h update.h patchlevel.h ymakefile
  80.     cp prefix.sh prefix.c
  81.     $(CPP) prefix.c | \
  82.     sed -e '1,/CUT PREFIX HERE/d' \
  83.         -e '/prefix.c/d' \
  84.         -e '/^[     ]*$$/d' \
  85.         -e 's/^&/#/' \
  86.         -e 's/[     ]*=[     ]*/=/' > prefix
  87.     rm -f prefix.c
  88. cvt-help:    cvt-help.c
  89.     $(CC) -o cvt-help cvt-help.c
  90. active.o:    active.c config.h global.h vararg.h data.h
  91. admin.o:    admin.c config.h global.h vararg.h data.h db.h term.h
  92. answer.o:    answer.c config.h global.h vararg.h data.h news.h term.h \
  93.         keymap.h
  94. articles.o:    articles.c config.h global.h vararg.h data.h db.h articles.h \
  95.         match.h
  96. collect.o:    collect.c config.h global.h vararg.h data.h db.h news.h
  97. cvt-help.o:    cvt-help.c
  98. date_regexp.o:    date_regexp.c config.h global.h vararg.h data.h
  99. db.o:        db.c config.h global.h vararg.h data.h db.h
  100. decode.o:    decode.c config.h global.h vararg.h data.h
  101. digest.o:    digest.c config.h global.h vararg.h data.h news.h match.h  \
  102.         debug.h
  103. execute.o:    execute.c config.h global.h vararg.h data.h term.h
  104. expire.o:    expire.c config.h global.h vararg.h data.h db.h
  105. folder.o:    folder.c config.h global.h vararg.h data.h articles.h news.h \
  106.         term.h menu.h
  107. global.o:    global.c config.h global.h vararg.h data.h
  108. group.o:    group.c config.h global.h vararg.h data.h articles.h db.h \
  109.         term.h menu.h keymap.h regexp.h
  110. init.o:        init.c config.h global.h vararg.h data.h articles.h term.h \
  111.         keymap.h menu.h
  112. keymap.o:    keymap.c config.h global.h vararg.h data.h keymap.h term.h
  113. kill.o:        kill.c config.h global.h vararg.h data.h term.h regexp.h
  114. log_entry.o:    log_entry.c
  115. macro.o:    macro.c config.h global.h vararg.h data.h keymap.h term.h
  116. master.o:    master.c config.h global.h vararg.h data.h db.h options.h
  117. match.o:    match.c
  118. menu.o:        menu.c config.h global.h vararg.h data.h articles.h term.h \
  119.         keymap.h menu.h regexp.h
  120. more.o:        more.c config.h global.h vararg.h data.h news.h term.h \
  121.         menu.h keymap.h regexp.h
  122. news.o:        news.c config.h global.h vararg.h data.h news.h
  123. nn.o:        nn.c config.h global.h vararg.h data.h menu.h term.h \
  124.         keymap.h options.h
  125. nnmail.o:    nnmail.c config.h global.h vararg.h data.h options.h
  126. nntp.o:        nntp.c config.h global.h vararg.h data.h nntp.h
  127. options.o:    options.c config.h global.h vararg.h data.h options.h
  128. pack_date.o:    pack_date.c config.h global.h vararg.h data.h
  129. pack_name.o:    pack_name.c config.h global.h vararg.h data.h
  130. pack_subject.o:    pack_subject.c config.h global.h vararg.h data.h
  131. rc.o:        rc.c config.h global.h vararg.h data.h term.h debug.h
  132. regexp.o:    regexp.c config.h global.h vararg.h data.h regexp.h
  133. reroute.o:    reroute.c config.h global.h vararg.h data.h
  134. save.o:        save.c config.h global.h vararg.h data.h term.h keymap.h \
  135.         news.h
  136. selection.o:    selection.c config.h global.h vararg.h data.h term.h\
  137.          articles.h
  138. sequence.o:    sequence.c config.h global.h vararg.h data.h debug.h
  139. term.o:        term.c config.h global.h vararg.h data.h term.h keymap.h
  140. unshar.o:    unshar.c config.h global.h vararg.h data.h
  141. update.o:    update.c patchlevel.h update.h
  142. variable.o:    variable.c config.h global.h vararg.h data.h
  143. nn1:    $(NN) 
  144.     $(CC) $(CFLAGS) $(NN) -lcurses  -Mnn1 -o nn1
  145.